package com.ruoyi.manager.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manager.mapper.TbeduWeektrackMapper;
import com.ruoyi.manager.domain.TbeduWeektrack;
import com.ruoyi.manager.service.ITbeduWeektrackService;
import com.ruoyi.common.core.text.Convert;

/**
 * 学生评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-17
 */
@Service
public class TbeduWeektrackServiceImpl implements ITbeduWeektrackService 
{
    @Autowired
    private TbeduWeektrackMapper tbeduWeektrackMapper;

    /**
     * 查询学生评价
     * 
     * @param fId 学生评价主键
     * @return 学生评价
     */
    @Override
    public TbeduWeektrack selectTbeduWeektrackByFId(Long fId)
    {
        return tbeduWeektrackMapper.selectTbeduWeektrackByFId(fId);
    }

    /**
     * 查询学生评价列表
     * 
     * @param tbeduWeektrack 学生评价
     * @return 学生评价
     */
    @Override
    public List<TbeduWeektrack> selectTbeduWeektrackList(TbeduWeektrack tbeduWeektrack)
    {
        return tbeduWeektrackMapper.selectTbeduWeektrackList(tbeduWeektrack);
    }

    /**
     * 新增学生评价
     * 
     * @param tbeduWeektrack 学生评价
     * @return 结果
     */
    @Override
    public int insertTbeduWeektrack(TbeduWeektrack tbeduWeektrack)
    {
        return tbeduWeektrackMapper.insertTbeduWeektrack(tbeduWeektrack);
    }

    /**
     * 修改学生评价
     * 
     * @param tbeduWeektrack 学生评价
     * @return 结果
     */
    @Override
    public int updateTbeduWeektrack(TbeduWeektrack tbeduWeektrack)
    {
        return tbeduWeektrackMapper.updateTbeduWeektrack(tbeduWeektrack);
    }

    /**
     * 批量删除学生评价
     * 
     * @param fIds 需要删除的学生评价主键
     * @return 结果
     */
    @Override
    public int deleteTbeduWeektrackByFIds(String fIds)
    {
        return tbeduWeektrackMapper.deleteTbeduWeektrackByFIds(Convert.toStrArray(fIds));
    }

    /**
     * 删除学生评价信息
     * 
     * @param fId 学生评价主键
     * @return 结果
     */
    @Override
    public int deleteTbeduWeektrackByFId(Long fId)
    {
        return tbeduWeektrackMapper.deleteTbeduWeektrackByFId(fId);
    }
}
